package com.jiaai.cloud.active.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiaai.cloud.active.entity.TActivity;
import com.jiaai.cloud.active.mapper.TActivityMapper;
import com.jiaai.cloud.active.service.ITActivityService;
import com.jiaai.cloud.base.page.CustomPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 活动 服务实现类
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-09-01
 */
@Service
public class TActivityServiceImpl extends ServiceImpl<TActivityMapper, TActivity> implements ITActivityService {
    @Override
    public CustomPage findFullByAll(Page page, @Param("ew") Wrapper wrapper) {
        page.setRecords(baseMapper.findFullByAll(page,wrapper));
        return new CustomPage(page);
    }
}
